﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

namespace Kooboo.Commerce.Payments.PayPal
{
    using Kooboo.Web.Mvc;
    
    using System.Web.Routing;
    using System.Web.Mvc;
    public class MvcApplication : System.Web.HttpApplication
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            //routes.IgnoreRoute("{resource}.axd/{*pathInfo}");


            //routes.MapRoute("Default", "{controller}/{action}/{id}",
            //    new { controller = "PayPal", action = "Index", id = UrlParameter.Optional },
            //    new[] { "Kooboo.Commerce.Payments.PayPal.Controllers" }
            //    );

            //Kooboo.Web.Mvc.Routing.RouteTableRegister.RegisterRoutes(routes);

            //ModelMetadataProviders.Current = new KoobooDataAnnotationsModelMetadataProvider();

            //ModelValidatorProviders.Providers.RemoveAt(0);
            //ModelValidatorProviders.Providers.Insert(0, new KoobooDataAnnotationsModelValidatorProvider());
        }

        protected void Application_Start()
        {
            //AreaRegistration.RegisterAllAreas();

            //RegisterRoutes(RouteTable.Routes);

        }
    }
}